package cn.livingCloud.entity.content;

import cn.livingCloud.entity.user.User;
import cn.livingCloud.utils.DateUtils;
import cn.livingCloud.utils.UuidGenerator;

import java.util.Date;

/**
 * 文章
 * Created by 唐旭 on 2016/1/13.
 */
public class Article {
    private String uuid = UuidGenerator.generate();
    //文章标题
    private String title;
    //标题颜色
    private String color;
    //是否加粗
    private boolean strong;
    //内容
    private String content;
    //是否发布
    private boolean publish;
    //创建日期
    private Date createTime = DateUtils.now();
    //最后修改日期
    private Date lastModifyTime;
    //创建人
    private User creater;
    private String userId;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public boolean isStrong() {
        return strong;
    }

    public void setStrong(boolean strong) {
        this.strong = strong;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isPublish() {
        return publish;
    }

    public void setPublish(boolean publish) {
        this.publish = publish;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public User getCreater() {
        return creater;
    }

    public void setCreater(User creater) {
        this.creater = creater;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
